package admin

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type UserController struct {
}

func (con UserController) Index(c *gin.Context) {
	username := c.GetString("username")
	//userInfo, _ := c.Get("userInfo")
	//maxHeaderBytes := 1 << 20
	//fmt.Println(maxHeaderBytes)
	//fmt.Println(username)
	//fmt.Println(userInfo)
	//fmt.Println(userInfo.(map[string]interface{})["name"].(string))
	c.String(http.StatusOK, "用户列表--"+username)
}

func (con UserController) Add(c *gin.Context) {
	c.String(http.StatusOK, "用户列表--add")
}

func (con UserController) Edit(c *gin.Context) {
	c.String(http.StatusOK, "用户列表--edit")
}
